//引入请求库
import http from '@/utils/http2'

//根据id获取客户信息
export function queryCustomerById(id){
  return http.get('/api/customer', { id })
}
//激活用户与下机用户
export function active(id){
  return http.put('/api/customer/active',{id})
}
export function deactivate(id){
  return http.put('/api/customer/deactivate',{id})
}
//获取客户列表
export function queryCustomer(data){
  return http.post('/api/customer/list',data)
}
//保存客户
export function saveCustomer(data){
  return http.post('/api/customer',data)
}
//修改用户
export function updateCustomer(data){
  return http.put('/api/customer',data)
}


  